import request from './axios'

// 获取AI助手问候语
export function getAIGreeting() {
  return request({
    url: '/api/ai/greeting',
    method: 'get'
  })
}

// 与AI助手聊天
export function chatWithAI(message) {
  return request({
    url: '/api/ai/chat',
    method: 'post',
    data: {
      message: message
    }
  })
}

// AI助手对话
export function aiAssistant(query, role = 'caregiver') {
  return request({
    url: '/api/ai/assistant',
    method: 'post',
    data: {
      query: query,
      role: role
    }
  })
}
